package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.ProHotCateTop3;
import top.shiyiri.shops.dao.ProHotCateTop3Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/21
 */
@Service
public class ProHotCateTop3Service {

    @Autowired
    private ProHotCateTop3Dao dao;

    public List<ProHotCateTop3> findProHotCateTop3(int page, int size) {
        return dao.findProHotCateTop3((page-1)*size, size);
    }

    public int totalLine() {
        return dao.totalLine();
    }

    public List<ProHotCateTop3> findAllProHotCate() {
        return dao.findAllProHotCate();
    }
}
